﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PocketBook.Domain.Entities;
using System.Linq.Expressions;

namespace PocketBook.Domain.Abstract
{
    public interface IRepository
    {
        #region Expenses

        List<Expense> GetExpenses();

        List<Expense> GetExpenses(Func<Expense, bool> where);

        Expense AddExpense(Expense expense);

        void UpdateExpense(Expense expense);

        void DeleteExpanse(Guid id);


        #endregion

        #region Incomes

        List<Income> GetIncomes();

        List<Income> GetIncomes(Func<Income, bool> where);

        Income AddIncome(Income expense);

        void UpdateIncome(Income expense);

        void DeleteIncome(Guid id);

        #endregion
    }
}
